/**
* \file CaseArtefact.cpp
* \brief Ensemble des methodes de la classe CaseArtefact
* \author FEKI Mehdi && RIPOCHE Emilien
* \version 1.0
* \date 04/12/2011
*/

#include "CaseArtefact.h"

CaseArtefact::CaseArtefact() {
	this->nbArtefacts = 3;
}

CaseArtefact::CaseArtefact(unsigned int n) 
	: nbArtefacts(n) {};

unsigned int CaseArtefact::getNbArtefacts() const {
	return this->nbArtefacts;
}

void CaseArtefact::setNbArtefacts(unsigned int n) {
	this->nbArtefacts = n;
}

void CaseArtefact::decrementationNbArtefacts() {
	if(this->nbArtefacts > 0) {
		this->nbArtefacts--;
	}
}

Case::TypeCase CaseArtefact::type() const {
	return Artefact;
};